<template>
  <div class="rr">
    <div v-for="v in data" :key="v.iId" :title="v.sTitle">
      <img height="116px" :src="v.sIMG" alt="" />
      <div>{{ v.sTitle }}</div>
      <div>
        <img
          src="/img/u=30380529,3879027376&fm=253&fmt=auto&app=138&f=JPEG.webp"
          alt=""
        />
      </div>
      <div>{{ v.iTotalPlay }}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["data"],
};
</script>

<style lang="scss" scoped>
.rr {
  display: flex;
  flex-wrap: wrap;
  > div {
    // border: 1px solid red;
    cursor: pointer;
    position: relative;
    width: 190px;
    height: 166px;
    margin: 0 0 24px 12px;
    &:hover > div:nth-child(3) {
      z-index: 1;
    }
    img {
      width: 100%;
      border-radius: 2px;
    }
    > div:nth-child(2) {
      padding-top: 8px;
      font-size: 14px;
      color: rgb(54, 54, 54);
      // border: 1px solid red;
      height: 45px;
      overflow: hidden;
    }
    > div:nth-child(3) {
      transition: 0.1s linear;
      text-align: center;
      position: absolute;
      left: 0;
      right: 0;
      background-color: rgba(0, 0, 0, 0.452);
      top: 0;
      height: 115px;
      padding-top: 40px;
      z-index: -1;
      img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
      }
    }
    > div:last-child {
      font-size: 12px;
      color: white;
      position: absolute;
      left: 0;
      right: 0;
      top: 99.5px;
      background-color: rgba(0, 0, 0, 0.504);
      background-image: url("/public/img/index.png");
      background-position: -254px -62px;
      padding-left: 20px;
    }
  }
}
</style>